@extends('home/layout')

@if($script_blade = 'auth/login' )@endif

@section('content')
<style>
	body{
		background: #efefef;
	}
</style>
<div class="row">
	<div class="col-md-5 col-md-offset-3">
		<div class="panel panel-default">
			<div class="panel-heading">
				<strong>登录</strong>
			</div>
			<div class="panel-body">
			@if(count($errors) > 0)
            <div class="alert alert-danger">{{ $errors->first('message') }}</div>
            @endif
				<form action="{{ url('auth/login/login') }}" method="post">
					{!! csrf_field() !!}
					<div class="form-group">
						<label for="authKey">账号</label>
						<input type="text" name="authKey" id="authKey" value="{{ old('authKey') }}" class="form-control" placeholder="用户名/邮箱/手机号"/>
					</div>
					<div class="form-group">
						<label for="password">密码</label>
						<input type="password" name="password" id="password" class="form-control"/>
					</div>
                    <div class="form-group">
                        <input type="checkbox" name="remember" checked />
                        <label for="password">自动登录</label>
                    </div>
					<button type="submit" class="btn btn-primary">登录</button>
				</form>
			</div>
			<div class="panel-footer">
				<a href="">找回密码</a>
				<span class="text-muted">| 还没有注册账号？</span>
				<a href="{{ url('auth/register') }}">立即注册</a>
			</div>
		</div>
	</div>
</div>
@endsection